using System;
using System.Windows;
namespace Microsoft.Phone.Controls
{
	public class MultiTouchGestureEventArgs : GestureEventArgs
	{
		protected Point GestureOrigin2
		{
			get;
			private set;
		}
		protected Point TouchPosition2
		{
			get;
			private set;
		}
		internal MultiTouchGestureEventArgs(Point gestureOrigin, Point gestureOrigin2, Point position, Point position2) : base(gestureOrigin, position)
		{
			this.GestureOrigin2 = gestureOrigin2;
			this.TouchPosition2 = position2;
		}
		public Point GetPosition(UIElement relativeTo, int index)
		{
			if (index == 0)
			{
				return base.GetPosition(relativeTo);
			}
			if (index == 1)
			{
				return GestureEventArgs.GetPosition(relativeTo, this.TouchPosition2);
			}
			throw new ArgumentOutOfRangeException("index");
		}
	}
}
